Lakshmi Srinivas has Published 315 Articles

Touchmove pointer-events: none CSS does not work on Chrome for Android 4.4 / ChromeView

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 25-Jun-2020 07:29:12

161 Views

The touchstart event is fired when the touchpoint is positioned on the touch surface. Use addEventListener() for touchmove pointer-events −overlay.addEventListener('touchstart', function(ev){    ev.preventDefault(); });Here, we have also used the preventDefault() method. The preventDefault() method prevents the browser from executing the default action.

CSS order property

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 25-Jun-2020 07:23:28

102 Views

Use the order property to set the order of the flex itemsYou can try to run the following code to implement the CSS order property −ExampleLive Demo                    .mycontainer {             display: flex;     ... Read More

Chrome input type=“number” CSS styling

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 25-Jun-2020 07:20:05

995 Views

To style input type = number, use the following CSS −input[type=number]::-webkit-inner-spin-button {    -webkit-appearance: none; }The above shows without a spinner.To show and style a spinner, useinput[type=number]::-webkit-inner-spin-button {    opacity: 1; }OutputThe above shows the following output −

Android 4.0.1 breaks WebView HTML 5 local storage?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 25-Jun-2020 07:09:42

195 Views

To solve this problem, follow the below-given steps −For android versions less than 4.4, loading data into a webview with a file scheme as a directory like this won’t work.browser.loadDataWithBaseUrl("file:///android_asset/", html, "text/html", "UTF-8", null);Add a filename and it works on older Android versions −browser.loadDataWithBaseUrl("file:///android_asset/new.html", htmlContent, "text/html", "UTF-8", null);You can use ... Read More

How to make the web page height to fit screen height with HTML?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 25-Jun-2020 06:24:42

3K+ Views

Many ways are available to make the web page height to fit the screen height −Give relative heights −html, body {    height: 100%; }You can also give fixed positioning −#main {    position:fixed;    top:0px;    bottom:0px;    left:0px;    right:0px; }You can also use Viewport height to fulfill ... Read More

HTML5 Input type=number removes leading zero

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 25-Jun-2020 06:16:28

3K+ Views

The leading zero issues may arise when you want to add an international phone number.To solve this −On iOS, the numeric keyboard appears with only numbers.On Android phones, the "tel" is rightly interpreted but not the pattern.You can also use −

Best framework for HTML5 based Mobile Development.

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 25-Jun-2020 06:13:44

124 Views

The following are some of the best frameworks for HTML5 based mobile development −Kendo UIUse Kendo UI to develop an invaluable cross-platform mobile application.BootstrapBootstrap supports HTML, CSS, and JS that allows developing mobile apps with responsive layouts.IonicIonic is an open-source framework used for developing mobile applications. It provides tools and ... Read More

Pull down to refresh on the mobile web browser in HTML.

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 24-Jun-2020 14:12:20

661 Views

When there is a requirement to pull down the screen to refresh the page to get latest updates, this can be done with the help of JavaScript, xhttprequests and then touch events.Pull refresh is a trigger to XHR in AJAX .It adds new data to the element we want.Pull refresh ... Read More

What are Pure HTML export buttons in jQuery Data Table?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 24-Jun-2020 14:06:49

124 Views

jQuery Data Table provides export buttons with the help of which we can make a structure like the following −Export PDFExport CSVExport HTMLExport ExcelFor this, we need to write code −var tbl = $('#extable').DataTable({      dom: 'export',        buttons: [          {     ... Read More

How to set the height of an element with JavaScript?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 23-Jun-2020 13:06:43

642 Views

Use the height property to set the height of an element. You can try to run the following code to set the height of a button with JavaScript −ExampleLive Demo           Heading 1       This is Demo Text.       Update Height                function display() {             document.getElementById("myID").style.height = "100px";          }          

Previous 1 ... 4 5 6 7 8 ... 32 Next
Advertisements