Форум программистов, компьютерный форум, киберфорум
jQuery
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.50/4: Рейтинг темы: голосов - 4, средняя оценка - 4.50
1 / 1 / 1
Регистрация: 25.10.2016
Сообщений: 83

Как сделать ширину тэга li по ширине экрана?

12.06.2018, 07:06. Показов 799. Ответов 8

Студворк — интернет-сервис помощи студентам
Здравствуйте. Такая проблема, скачал шаблон слайдера, и пытаюсь прикрутить его к своему сайту. В принципе осталось две проблемы. Убрать css из html, и сделать что бы li был по ширине экрана.
Мне нужно что бы слайдер был полностью адаптивным. Поэтому style="min-height:540px;" не должно быть не только в html, но и в css. Высота слайдера должна задаваться высотой картинок.
Ширина тэга ul задается в js, поэтому в этой теме и пишу, нужно что бы тэг li был по ширине экрана, а не картинки.
Кода много поэтому в codepen
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
12.06.2018, 07:06
Ответы с готовыми решениями:

Как сделать ширину выпадающего списка, равным ширине родительской категории?
Как сделать минимальную ширину выпадающего списка, равным ширине родительской категории? На чистом css. Т.е. Если ширина родителя =...

В коде задать ширину и длину формы равными ширине и длине экрана
как в коде задать ширину и длину формы равными ширине и длине экрана, т.е. то, что в VB задаётся так: Width = Screen.Width Height =...

Как сделать растяжение по ширине экрана
Dim A As Double Dim q As Double Dim j As Integer Dim ar(1 To 1000) As Double Dim k As Integer Dim l As Integer Dim t As Integer...

8
Эксперт JS
2037 / 1096 / 409
Регистрация: 29.04.2016
Сообщений: 2,625
12.06.2018, 10:13
Цитата Сообщение от Tverdislav Посмотреть сообщение
Кода много поэтому в codepen
перехожу по ссылке и в "результативном" фрейме codepen-а пустота, покажи с чем работать?
0
1 / 1 / 1
Регистрация: 25.10.2016
Сообщений: 83
12.06.2018, 10:39  [ТС]
У меня значения берутся из БД. Просто подставь свои фото.
0
Эксперт JS
2037 / 1096 / 409
Регистрация: 29.04.2016
Сообщений: 2,625
12.06.2018, 10:54
Цитата Сообщение от Tverdislav Посмотреть сообщение
Просто подставь свои фото.
Я могу полностью и сайт тебе написать за просто так- чего уж там, хочешь помощи?- оформи код так что бы остальным было удобно тебе помогать: подставь фото по ссылкам на картинки из Яндекса, что-то еще измени в своем коде что бы было проще тебе помогать, нуу... и так далее.
0
1 / 1 / 1
Регистрация: 25.10.2016
Сообщений: 83
12.06.2018, 10:55  [ТС]
работаю над этим
0
Эксперт JS
2037 / 1096 / 409
Регистрация: 29.04.2016
Сообщений: 2,625
12.06.2018, 11:00
Цитата Сообщение от Tverdislav Посмотреть сообщение
работаю над этим
Делай, выкладывай код или ссыль и может кто-то поможет
0
1 / 1 / 1
Регистрация: 25.10.2016
Сообщений: 83
12.06.2018, 11:10  [ТС]
index.phtml
HTML5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<script type="text/javascript">
    $(document).ready( function(){
        var buttons = { previous:$('#lofslidecontent45 .lof-previous') ,
            next:$('#lofslidecontent45 .lof-next') };
 
        $obj = $('#lofslidecontent45').lofJSidernews( { interval : 4000,
            direction       : 'opacitys',
            easing          : 'easeInOutExpo',
            duration        : 1200,
            auto            : false,
            maxItemDisplay  : 4,
            navPosition     : 'horizontal', // horizontal
            navigatorHeight : 32,
            navigatorWidth  : 80,
            mainWidth:980,
            buttons         : buttons} );
    });
</script>
 
<div class="container-fluid p-0" >
<div id="lofslidecontent45" class="lof-slidecontent w-100" style="min-height:540px;">
    <div class="preload"><div></div></div>
    <!-- MAIN CONTENT -->
    <div class="lof-main-outer w-100" style="min-height:540px;">
        <ul class="lof-main-wapper">
            <?php foreach ($foto as $f):?>
            <li >
                <img src="<?= $this->url('application', ['action'=>'file'],
                    ['query'=>['name'=>$f['image']],  'thumbnail'=>true]) ?>" title="<?php echo $f['title'];?>"  class=" w-100">
                <div class="lof-main-item-desc">
                    <h3><a target="_parent" title="<?php echo $f['lable'];?>" href="/application/<?php echo $f['link'];?>/<?php echo $f['id'];?>">/ <?php echo $f['title'];?> /</a></h3>
 
                    <p><?php echo $f['description'];?>
                        <a class="readmore" href="/application/<?php echo $f['link'];?>/<?php echo $f['id'];?>">Читать далее... </a>
                    </p>
                </div>
            </li>
            <?php endforeach;?>
        </ul>
    </div>
    <!-- END MAIN CONTENT -->
    <!-- NAVIGATOR -->
  <div class="lof-navigator-wapper">
 
        <div onclick="return false" href="" class="lof-next">Next</div>
        <div class="lof-navigator-outer">
            <ul class="lof-navigator">
                <?php foreach ($foto as $f):?>
                    <li><img src="<?= $this->url('application', ['action'=>'file'],
                        ['query'=>['name'=>$f['image']],  'thumbnail'=>true]) ?>" class="d-block w-100"></li>
                <?php endforeach;?>
            </ul>
        </div>
        <div onclick="return false" href="" class="lof-previous">Previous</div>
    </div>
    <!----------------- --------------------->
</div>
</div>
<script type="text/javascript">
 
</script>
style.css
CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
@charset "utf-8";
/* CSS Document */
body {
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#39414A;
}
 
a{
    text-transform:none;
    color:#333
}
 
.lof-slidecontent, .lof-slidecontent a {
    color:#FFF; 
}
.lof-slidecontent a.readmore{
    color:#58B1EA;
    font-size:95%;
    
}
.lof-slidecontent{
    position:relative;
    overflow:hidden;
    border:#F4F4F4 solid 1px;
}
.lof-slidecontent .preload{
    height:100%;
    width:100%;
    position:absolute;
    top:0;
    left:0;
    z-index:100000;
    text-align:center;
    background:#FFF
}
.lof-slidecontent .preload div{
    height:100%;
    width:100%;
    background:transparent url(../img/load-indicator.gif) no-repeat scroll 50% 50%;
}
.lof-main-outer{
    position:relative;
    height:100%;
    width:100%;
    z-index:3px;
    overflow:hidden;
}
 
 
/*******************************************************/
.lof-main-item-desc{
    z-index:100px;
    position:absolute;
    bottom:50px;
    left:0px;
    width:350px;
    background:url(../img/bg_trans.png);
    height:100px;
    /* filter:0.7(opacity:60) */
    padding:10px;
}
.lof-main-item-desc p{
    margin:0 8px;
    padding:8px 0
}
.lof-main-item-desc h3{
    padding:0;
    margin:0
}
.lof-main-item-desc h2{
    padding:0;
    margin:15px 0 0 0px;
}
.lof-main-item-desc h3 a{   
    margin:0;
    background:#C01F25;
    font-size:75%;
    padding:2px 3px;
    font-family:"Trebuchet MS",Trebuchet,Arial,Verdana,sans-serif;
    text-transform:uppercase;
    text-decoration:none
}
.lof-main-item-desc h3 a:hover{
 
    text-decoration:underline;
}
.lof-main-item-desc h3 i {
    font-size:70%;
}
 
/* main flash */
ul.lof-main-wapper{
    /* margin-right:auto; */
    overflow:hidden;
    background:transparent url(../img/load-indicator.gif) no-repeat scroll 50% 50%;
    padding:0px;
    margin:0;
    position:absolute;
    overflow:hidden;
 
}
 
ul.lof-main-wapper li{
    overflow:hidden;
    padding:0px;
    margin:0px;
    float:left;
    position:relative;
 
}
.lof-opacity  li{
    position:absolute;
    top:0;
    left:0;
    float:inherit;
}
ul.lof-main-wapper li img{
    padding:0px;    
}
 
/* item navigator */
.lof-navigator-wapper {
    position:absolute;
    bottom:10px;
    right:10px;
    background:url(../img/transparent_bg.png) repeat;
    padding:5px 0px;
}
.lof-navigator-outer{
    position:relative;
    z-index:100;
    height:180px;
    width:310px;
    overflow:hidden;
    color:#FFF;
    float:left
}
ul.lof-navigator{
    top:0;
    padding:0;
    margin:0;
    position:absolute;
    width:100%;
}
ul.lof-navigator li{
    cursor:hand; 
    cursor:pointer;
    list-style:none;
    padding:0;
    margin-left:0px;
    overflow:hidden;
    float:left;
    display:block;
 
    text-align:center;
 
}
ul.lof-navigator li img{
    border:#666 solid 3px;  
}
ul.lof-navigator li.active img, ul.lof-navigator li:hover img {
    border:#A8A8A8 solid 3px;
}
.lof-navigator-wapper .lof-next,  .lof-navigator-wapper .lof-previous{
    display:block;
    width:22px;
    height:30px;
    color:#FFF;
    cursor:pointer;
 
}
.lof-navigator-wapper .lof-next {
    float:left;
    vertical-align: center;
    text-indent:-999px;
    margin-right:5px;
    background:url(../img/arrow-l.png) no-repeat right center;
}
.lof-navigator-wapper .lof-previous {
    float:left; 
    text-indent:-999px;
    margin-left:5px;
    background:url(../img/arrow-r.png) no-repeat left center;
}
script.js
JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
// JavaScript Document
/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * Version: 3.0.2
 * 
 * Requires: 1.2.2+
 */
 
(function($) {
 
var types = ['DOMMouseScroll', 'mousewheel'];
 
$.event.special.mousewheel = {
    setup: function() {
        if ( this.addEventListener )
            for ( var i=types.length; i; )
                this.addEventListener( types[--i], handler, false );
        else
            this.onmousewheel = handler;
    },
    
    teardown: function() {
        if ( this.removeEventListener )
            for ( var i=types.length; i; )
                this.removeEventListener( types[--i], handler, false );
        else
            this.onmousewheel = null;
    }
};
 
$.fn.extend({
    mousewheel: function(fn) {
        return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
    },
    
    onmousewheel: function(fn) {
        return this.unbind("mousewheel", fn);
    }
});
 
 
function handler(event) {
    var args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true;
    
    event = $.event.fix(event || window.event);
    event.type = "mousewheel";
    
    if ( event.wheelDelta ) delta = event.wheelDelta/120;
    if ( event.detail     ) delta = -event.detail/3;
    
    // Add events and delta to the front of the arguments
    args.unshift(event, delta);
 
    return $.event.handle.apply(this, args);
}
 
})(jQuery);
 
/**
 * @version     $Id:  $Revision
 * @package     jquery
 * @subpackage  lofslidernews
 * @copyright   Copyright (C) JAN 2010 LandOfCoder.com <@emai:landofcoder@gmail.com>. All rights reserved.
 * @website     http://landofcoder.com
 * @license     This plugin is dual-licensed under the GNU General Public License and the MIT License 
 */
// JavaScript Document
(function($) {
     $.fn.lofJSidernews = function( settings ) {
        return this.each(function() {
            // get instance of the lofSiderNew.
            new  $.lofSidernews( this, settings ); 
        });
     }
     $.lofSidernews = function( obj, settings ){
        this.settings = {
            direction           : '',
            mainItemSelector    : 'li',
            navInnerSelector    : 'ul',
            navSelector         : 'li' ,
            navigatorEvent      : 'click',
            wapperSelector:     '.lof-main-wapper',
            interval            : 4000,
            auto                : true, // whether to automatic play the slideshow
            maxItemDisplay      : 3,
            startItem           : 0,
            navPosition         : 'vertical', 
            navigatorHeight     : 100,
            navigatorWidth      : 310,
            duration            : 600,
            navItemsSelector    : '.lof-navigator li',
            navOuterSelector    : '.lof-navigator-outer' ,
            isPreloaded         : true,
            easing              : 'easeInOutQuad'
        }   
        $.extend( this.settings, settings ||{} );   
        this.nextNo         = null;
        this.previousNo     = null;
        this.maxWidth  = this.settings.mainWidth || $("div.lof-main-outer").width();
        this.wrapper = $( obj ).find( this.settings.wapperSelector );
 
        this.slides = this.wrapper.find( this.settings.mainItemSelector );
        if( !this.wrapper.length || !this.slides.length ) return ;
        // set width of wapper
        if( this.settings.maxItemDisplay > this.slides.length ){
            this.settings.maxItemDisplay = this.slides.length;  
        }
        this.currentNo      = isNaN(this.settings.startItem)||this.settings.startItem > this.slides.length?0:this.settings.startItem;
        this.navigatorOuter = $( obj ).find( this.settings.navOuterSelector );  
        this.navigatorItems = $( obj ).find( this.settings.navItemsSelector ) ;
        this.navigatorInner = this.navigatorOuter.find( this.settings.navInnerSelector );
        
        if( this.settings.navPosition == 'horizontal' ){ 
            this.navigatorInner.width( this.slides.length * this.settings.navigatorWidth );
            this.navigatorOuter.width( this.settings.maxItemDisplay * this.settings.navigatorWidth );
            this.navigatorOuter.height( this.settings.navigatorHeight );
            
        } else {
            this.navigatorInner.height( this.slides.length * this.settings.navigatorHeight );   
            
            this.navigatorOuter.height( this.settings.maxItemDisplay * this.settings.navigatorHeight );
            this.navigatorOuter.width(  this.settings.navigatorWidth );
        }       
        this.navigratorStep = this.__getPositionMode( this.settings.navPosition );      
        this.directionMode = this.__getDirectionMode();  
        
        
        if( this.settings.direction == 'opacity') {
            this.wrapper.addClass( 'lof-opacity' );
            $(this.slides).css('opacity',0).eq(this.currentNo).css('opacity',1);
        } else { 
            this.wrapper.css({'left':'-'+this.currentNo*this.maxSize+'px', 'width':( this.maxWidth ) * this.slides.length } );
        }
 
        
        if( this.settings.isPreloaded ) {
            this.preLoadImage( this.onComplete );
        } else {
            this.onComplete();
        }
        
     }
     $.lofSidernews.fn =  $.lofSidernews.prototype;
     $.lofSidernews.fn.extend =  $.lofSidernews.extend = $.extend;
     
     $.lofSidernews.fn.extend({
                              
        startUp:function( obj, wrapper ) {
            seft = this;
 
            this.navigatorItems.each( function(index, item ){
                $(item).click( function(){
                    seft.jumping( index, true );
                    seft.setNavActive( index, item );                   
                } );
                $(item).css( {'height': seft.settings.navigatorHeight, 'width':  seft.settings.navigatorWidth} );
            })
            this.registerWheelHandler( this.navigatorOuter, this );
            this.setNavActive(this.currentNo );
            
            if( this.settings.buttons && typeof (this.settings.buttons) == "object" ){
                this.registerButtonsControl( 'click', this.settings.buttons, this );
 
            }
            if( this.settings.auto ) 
            this.play( this.settings.interval,'next', true );
            
            return this;
        },
        onComplete:function(){
            setTimeout( function(){ $('.preload').fadeOut( 900 ); }, 400 ); this.startUp( );
        },
        preLoadImage:function(  callback ){
            var self = this;
            var images = this.wrapper.find( 'img' );
    
            var count = 0;
            images.each( function(index,image){ 
                if( !image.complete ){                
                    image.onload =function(){
                        count++;
                        if( count >= images.length ){
                            self.onComplete();
                        }
                    }
                    image.onerror =function(){ 
                        count++;
                        if( count >= images.length ){
                            self.onComplete();
                        }   
                    }
                }else {
                    count++;
                    if( count >= images.length ){
                        self.onComplete();
                    }   
                }
            } );
        },
        navivationAnimate:function( currentIndex ) { 
            if (currentIndex <= this.settings.startItem 
                || currentIndex - this.settings.startItem >= this.settings.maxItemDisplay-1) {
                    this.settings.startItem = currentIndex - this.settings.maxItemDisplay+2;
                    if (this.settings.startItem < 0) this.settings.startItem = 0;
                    if (this.settings.startItem >this.slides.length-this.settings.maxItemDisplay) {
                        this.settings.startItem = this.slides.length-this.settings.maxItemDisplay;
                    }
            }       
            this.navigatorInner.stop().animate( eval('({'+this.navigratorStep[0]+':-'+this.settings.startItem*this.navigratorStep[1]+'})'), 
                                                {duration:500, easing:'easeInOutQuad'} );   
        },
        setNavActive:function( index, item ){
            if( (this.navigatorItems) ){ 
                this.navigatorItems.removeClass( 'active' );
                $(this.navigatorItems.get(index)).addClass( 'active' ); 
                this.navivationAnimate( this.currentNo );   
            }
        },
        __getPositionMode:function( position ){
            if( position  == 'horizontal' ){
                return ['left', this.settings.navigatorWidth];
            }
            return ['top', this.settings.navigatorHeight];
        },
        __getDirectionMode:function(){
            switch( this.settings.direction ){
                case 'opacity': this.maxSize=0; return ['opacity','opacity'];
                default: this.maxSize=this.maxWidth; return ['left','width'];
            }
        },
        registerWheelHandler:function( element, obj ){ 
             element.bind('mousewheel', function(event, delta ) {
                var dir = delta > 0 ? 'Up' : 'Down',
                    vel = Math.abs(delta);
                if( delta > 0 ){
                    obj.previous( true );
                } else {
                    obj.next( true );
                }
                return false;
            });
        },
        registerButtonsControl:function( eventHandler, objects, self ){ 
            for( var action in objects ){ 
                switch (action.toString() ){
                    case 'next':
                        objects[action].click( function() { self.next( true) } );
                        break;
                    case 'previous':
                        objects[action].click( function() { self.previous( true) } );
                        break;
                }
            }
            return this;    
        },
        onProcessing:function( manual, start, end ){            
            this.previousNo = this.currentNo + (this.currentNo>0 ? -1 : this.slides.length-1);
            this.nextNo     = this.currentNo + (this.currentNo < this.slides.length-1 ? 1 : 1- this.slides.length);             
            return this;
        },
        finishFx:function( manual ){
            if( manual ) this.stop();
            if( manual && this.settings.auto ){ 
                this.play( this.settings.interval,'next', true );
            }       
            this.setNavActive( this.currentNo );    
        },
        getObjectDirection:function( start, end ){
            return eval("({'"+this.directionMode[0]+"':-"+(this.currentNo*start)+"})"); 
        },
        fxStart:function( index, obj, currentObj ){
                if( this.settings.direction == 'opacity' ) { 
                    $(this.slides).stop().animate({opacity:0}, {duration: this.settings.duration, easing:this.settings.easing} );
                    $(this.slides).eq(index).stop().animate( {opacity:1}, {duration: this.settings.duration, easing:this.settings.easing} );
                }else {
                    this.wrapper.stop().animate( obj, {duration: this.settings.duration, easing:this.settings.easing} );
                }
            return this;
        },
        jumping:function( no, manual ){
            this.stop(); 
            if( this.currentNo == no ) return;      
             var obj = eval("({'"+this.directionMode[0]+"':-"+(this.maxSize*no)+"})");
            this.onProcessing( null, manual, 0, this.maxSize )
                .fxStart( no, obj, this )
                .finishFx( manual );    
                this.currentNo  = no;
        },
        next:function( manual , item){
 
            this.currentNo += (this.currentNo < this.slides.length-1) ? 1 : (1 - this.slides.length);   
            this.onProcessing( item, manual, 0, this.maxSize )
                .fxStart( this.currentNo, this.getObjectDirection(this.maxSize ), this )
                .finishFx( manual );
        },
        previous:function( manual, item ){
            this.currentNo += this.currentNo > 0 ? -1 : this.slides.length - 1;
            this.onProcessing( item, manual )
                .fxStart( this.currentNo, this.getObjectDirection(this.maxSize ), this )
                .finishFx( manual   );          
        },
        play:function( delay, direction, wait ){    
            this.stop(); 
            if(!wait){ this[direction](false); }
            var self  = this;
            this.isRun = setTimeout(function() { self[direction](true); }, delay);
        },
        stop:function(){ 
            if (this.isRun == null) return;
            clearTimeout(this.isRun);
            this.isRun = null; 
        }
    })
})(jQuery)
0
Эксперт JS
2037 / 1096 / 409
Регистрация: 29.04.2016
Сообщений: 2,625
12.06.2018, 11:43
Tverdislav, было бы здорово если бы ты еще ссылочку выложил на песочницу со всем этим "рабочим" добром
0
1 / 1 / 1
Регистрация: 25.10.2016
Сообщений: 83
14.06.2018, 09:16  [ТС]
Что то не получается у меня в codepen сделать его рабочим. Поэтому так выложил код. По существу вопроса, мне нужно в script.js добавить строку которая определяла бы ширину тега mainItemSelector = li равную ширине экрана. И высота <div id="lofslidecontent45" class="lof-slidecontent w-100"> что бы определялась высотой картинки.
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
14.06.2018, 09:16
Помогаю со студенческими работами здесь

Как ширину одного из столбцов поля со списком сделать равной ширине столбца формы?
Здравствуйте! Подскажите пожалуйста, как ширину одного из столбцов поля со списком сделать равной ширине столбца формы? У меня в...

Как сделать шаблон на всю ширину экрана
Дборый день, на данной странице сайта http://senat-m.by/pakety/ уже убрали сайтбар, но не можем расширить шаблон страницы на всю ширину...

Как сделать блок на всю ширину экрана
&lt;div тут в стилях фиксированная ширина&gt; &lt;div&gt;&lt;/div&gt; &lt;div&gt;100% по ширине браузера&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; Как...

Как сделать меню в полную ширину экрана?
Есть такое меню .menu-wrapper { width: 100%; display: table; -webkit-border-radius: 2px; -moz-border-radius:...

Сделать ширину TextView по ширине самой длинной строки
Здравствуйте, подскажите пожалуйста, как сделать, чтобы ширина TextView была по ширине самого длинного предложения в строках ? ...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
9
Ответ Создать тему
Новые блоги и статьи
SDL3 для Web (WebAssembly): Обработчик клика мыши в браузере ПК и касания экрана в браузере на мобильном устройстве
8Observer8 02.02.2026
Содержание блога Для начала пошагово создадим рабочий пример для подготовки к экспериментам в браузере ПК и в браузере мобильного устройства. Потом напишем обработчик клика мыши и обработчик. . .
Философия технологии
iceja 01.02.2026
На мой взгляд у человека в технических проектах остается роль генерального директора. Все остальное нейронки делают уже лучше человека. Они не могут нести предпринимательские риски, не могут. . .
SDL3 для Web (WebAssembly): Вывод текста со шрифтом TTF с помощью SDL3_ttf
8Observer8 01.02.2026
Содержание блога В этой пошаговой инструкции создадим с нуля веб-приложение, которое выводит текст в окне браузера. Запустим на Android на локальном сервере. Загрузим Release на бесплатный. . .
SDL3 для Web (WebAssembly): Сборка C/C++ проекта из консоли
8Observer8 30.01.2026
Содержание блога Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
SDL3 для Web (WebAssembly): Установка Emscripten SDK (emsdk) и CMake для сборки C и C++ приложений в Wasm
8Observer8 30.01.2026
Содержание блога Для того чтобы скачать Emscripten SDK (emsdk) необходимо сначало скачать и уставить Git: Install for Windows. Следуйте стандартной процедуре установки Git через установщик. . . .
SDL3 для Android: Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 29.01.2026
Содержание блога Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами. Версия v3 была полностью переписана на Си, в. . .
Инструменты COM: Сохранение данный из VARIANT в файл и загрузка из файла в VARIANT
bedvit 28.01.2026
Сохранение базовых типов COM и массивов (одномерных или двухмерных) любой вложенности (деревья) в файл, с возможностью выбора алгоритмов сжатия и шифрования. Часть библиотеки BedvitCOM Использованы. . .
SDL3 для Android: Загрузка PNG с альфа-каналом с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 28.01.2026
Содержание блога SDL3 имеет собственные средства для загрузки и отображения PNG-файлов с альфа-каналом и базовой работы с ними. В этой инструкции используется функция SDL_LoadPNG(), которая. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru