Layui’s official definition of carousel height is placed in
carousel.render({height:''...})
In the method Pixels and percentages are supported. But the author has a demand, the carousel chart needs the background to return to the front according to the data permission control
And you need to set the height dynamically, not the fixed number of pixels and the proportion, and the height needs to be adjusted according to the current height
Adjust the pixels of the computer, such as how high is 1024 pixels, how high is normal pixels.
No more nonsense, just go to JS code:
Read More:
- VBA “user defined type not defined” MSXML2.DOMDocument
- Matlab realization of user-defined curve and legend
- Android get screen width and height and get control width and height
- [Vue warn]: Unknown custom element: <el-carousel-item> – did you register the component correctly?
- [resolved] superset failed to create admin user: error! User already exists user or attributeerror: ‘nonetype’‘
- When C language refers to a user-defined type as a parameter, an error segmentation fault is reported
- User defined profile in vscode settings.json And default configuration defaultSettings.json
- User CF itemcf collaborative filtering algorithm based on user and item
- Get the height of mobile phone status bar through reflection
- Android gets the height and width of the screen
- JS Mobile Page to determine whether it is iPhone X, and then set the corresponding height of the element?
- Vscode cannot write user settings. Open user settings, clear errors or warnings, and then type again
- Add samba user prompt Failed to add entry for user.
- Add Samba user prompt failed to add entry for user
- Syntax Error: SassError: Invalid CSS after “…-height: #{math“: expected expression (e.g. 1px, bold
- Error reported using layui $is not defined
- [How to Fix] NameError: name ‘requests‘ is not defined & NameError: name ‘request‘ is not defined